import Router from 'vue-router'
import Vue from '../vue'
import App from '../component/app/app.vue'
import product from '../component/app-content/product-list/product-list.vue'
import itemList from '../component/app-content/item-list/item-list.vue'

Vue.use(Router)

var app = Vue.extend(App)
var router = new Router()

router.map({
  '/': {
    component: product
  },
  '/child/:id': {
    component: itemList
  }
})

router.start(app, 'app')
